<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>农业大棚生产环境监测系统</title>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
-->
</style>
<!--include extjs lib-->
<link rel="stylesheet" type="text/css" href="./extjs/resources/css/grid.css" />
<script type="text/javascript" src="./extjs/adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="./extjs/ext-all.js"></script>
<script type="text/javascript" src="./js/contactGird.js"></script>
<script type="text/javascript" src="./js/houseList.js"></script>
<!-- end include -->
<link href="css/style.css" rel="stylesheet" type="text/css" />
<Script>
function init()
{
	girdInit();
	houseInit();
}
</Script>
</head>

<body onload="init()">
<table width="1024" height="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="45" colspan="3" background="image/title.jpg">
	<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="800" height="60">
              <param name="movie" value="image/guang.swf">
              <param name="quality" value="high">
              <param name="wmode" value="transparent">
      <embed src="image/guang.swf" width="800" height="60" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"></embed></object>	</td>
  </tr>
  <tr>
    <td colspan="3" class="maintitle">&nbsp;</td>
  </tr>
  <tr>
    <td width="200" rowspan="2" valign="top" height="698">
	<!--新闻页面-->
	<table width="200" border="0" height="698" align="center" cellpadding="0" cellspacing="0">
	  <tr>
		<td height="74" align="center" background="image/ctframe.jpg"><img src="image/BMCClogo.gif" width="173" height="74" /></td>
	  </tr>
	  <tr>
		<td height="31" align="center" background="image/ct_news.jpg">滚动新闻</td>
	  </tr>
	  <tr>
		<td background="image/ctframe.jpg" height="160" class="newsfront">
		<marquee scrolldelay="300"  direction="up" onmousemove="" height="260" onMouseOver='this.stop();' onMouseOut='this.start();' id="newquee" >
		今日新闻
		<br>
		<br>中国移动与农业部签订农业信息化合作框架协议
		<br>
		<br>其他新闻
		<p>
		<p>
		<p>
		<p>
		<p>
		</marquee>
		</td>
	  </tr>
	  <tr>
	  <td height="333" valign="top" background="image/ctframe.jpg">
	<div align="center"><div id=AdRotator></div>
	</div>
	<SCRIPT LANGUAGE="JavaScript">
	<!--
	function adRotator() {};
	adRotator.initialize=function(o)
	{
		// script by blueDestiny
	
		this._t = new Array();
		this._l = new Array();
		this._p = new Array();
		this._i = new Image();
		this._c = 0;
		this._f = true;
		this._o = o;
	
		this._timeout = null;
		this._html = "";
	
		// configration.
		// @ image width
		// @ image height
		// @ rotator speed
		// @ filter type
	
		this._w = 190;
		this._h = 124;
		this._s = 4;
		this._x = 23;
	
		return this;
	};
	adRotator.add=function(p,t,l) { with (this)
	{
		_p.push(p);
		_t.push(t);
		_l.push(l);
	}};
	
	adRotator.load=function() { with (adRotator)
	{
		if( _i.readyState=='complete' )
		{
			if(_p.length-1==_c)
			{
				_f = true;
				_c = 0;
				window.clearTimeout(_timeout);
				//getRef("AdRotator").innerHTML="complete";
				adRotator.play();
			}
			else
			{
				_c++;
				getRef(_o).innerHTML="total images " + _p.length + ", loading picture " + _c + ' ' + _i.readyState + "...";
				_timeout=window.setTimeout(adRotator.load,10)
			}
		}
		else
		{
			getRef(_o).innerHTML="total images " + _p.length + ", loading picture " + _c + ' ' + _i.readyState + "...";
			_timeout=window.setTimeout(adRotator.load,10)
		}
	}};
	
	adRotator.play=function() { with (adRotator)
	{
		if( _f )
		{ 
		_html = "";
		_html += '<table style="border:0px solid #333333;"><tr><td style="font-size:9pt;font-family:tahoma;font-weight:bold;">'
		_html += '<div id="rotatorPlayer"'
				+ ' style="width:' + _w + ''
				+ ';height:"' + _h + '"'
				+ '>'
		_html += '<a href="' + ( _l[_c] ? _l[_c] : "javascript:void(0);" ) + '">';
		_html += '<img id="rotatorPic" src="' + _p[_c] + '"'
				+ ' width="' + _w + '"'
				+ ' height="' + _h + '"'
				+ (_t[_c]?' title="' + _t[_c] + '"':'')
				+ ' style="border:0px solid blue;FILTER:revealTrans(transition=' + 6 + ',duration=1);"'
				+ ' >';
		_html += (_t[_c]?('<div align="center">' + (_c+1) + '. ' + _t[_c] + '</div>'):'<p></p>');
		_html += '</a>';
		_html += "</div>";
		_html += '<div align="right">';
	
		for(var i=0; i<_p.length; i++)
			_html += '<span'
						+ ' style="border:1px solid #333333;padding:1px 5px 1px 5px;height:20px;text-align:center;cursor:'
						+ (_c==i ? ('default;background-color:red;"') : 'hand;" onclick="adRotator.select(' + i + ')"')
						+ '>'
						+ (i>8?(i+1):('0'+(i+1)))+ '</span> ';
	
		_html += "</div></td></tr></table>";
		getRef(_o).innerHTML = _html;
	
		getRef("rotatorPic").filters[0].Apply();
		getRef("rotatorPic").filters[0].Play();
	
		next();
		}
		else
		{
			_i.src = _p[_c];
			adRotator.load();
		}
	}};
	adRotator.next=function() { with (this)
	{
		(_p.length-1==_c) ? _c=0 : _c++;
		_timeout=window.setTimeout(adRotator.play,_s*1000);
	}};
	adRotator.select=function(i) { with (this)
	{
		window.clearTimeout(_timeout);
		_c=i;
		adRotator.play();
	}};
	adRotator.set=function(second) { with (this)
	{
		window.clearTimeout(_timeout);
		if((/\d+/).test(second)==true)
		{
			_s=second;
			adRotator.play();
		}
		else
		{
			alert("must be digit!")
			adRotator.play();
		}
	}};
	function getRef(id)
	{
		return (document.all?document.all(id):document.getElementById(id));
	}
	adRotator.initialize("AdRotator");
	
	adRotator.add("image/scr_new1.jpg")
	adRotator.add("image/scr_new2.jpg")
	adRotator.add("image/scr_new3.jpg")
	adRotator.play();
	//-->
	</SCRIPT>  </td>
	  </tr>
	</table>
	<!--结束新闻页面-->	
	</td>
    <td width="624" rowspan="2" valign="top">
	<!-- 大棚列表-->
	<Table cellpadding="0" cellspacing="0" width="100%" height="100%">
	<!--大棚信息列表-->
	<tr align="left" height="31"><td width="87%" background="image/mso-hd.gif">监控大棚列表</td>
	  <td width="13%" align="right" background="image/mso-hd.gif"><a href="./func/newHouse.jsp" class="action">新增大棚</a></td>
	</tr>
	<tr><td colspan="2"><div id="house" style="width:624"></div></td></tr>
	<!-- 最关心的大棚数据曲线-->
	<tr align="left" height="21"><td colspan="2" background="image/vista-hd.gif">实时曲线</td>
	</tr>
	<tr><td colspan="2">&nbsp;</td></tr>
	</Table>
	<!-- 结束大棚列表-->
	</td>
	<!--天气预报-->
    <td width="202" height="260" align="right" valign="top" background="image/rightframe.jpg">
	<div align="right"> <img src="image/ericsson_log.jpg" width="200" height="60" /></div>
	<iframe src="" id="frame1" frameborder="0" scrolling="no" width="200" height="260" allowTransparency="true"></iframe>
	</td>
	<!--结束天气预报-->
  </tr>
  <tr>
  	<td width="202" height="438" background="image/rightframe.jpg">
	<!--联系人列表-->
	<table cellpadding="0" cellspacing="0" width="100%">
	<tr>
	<td width="2">&nbsp;</td>
	<td width="200" align="center" background="image/mso-hd.gif">联系人名单</td>
	</tr>
	<tr>
	<td width="2">&nbsp;</td>
	<td width="200"><div id="grid" style="width:200"></div></td>
	</tr>
	</table>
	<!--结束联系人列表-->
	</td>
  </tr>
</table>
</body>
<script>
document.all.frame1.src="http://www.thinkpage.cn/weather/weather.aspx?c=CHXX0141&l=zh-CN&p=MSN&a=1&u=C&s=1&m=1&x=1&d=3&fc=&bgc=&bc=";
</script>
</html>
